//
//  ViewController.swift
//  MTHybrid
//
//  Created by “cuishiqiang” on 03/18/2020.
//  Copyright (c) 2020 “cuishiqiang”. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    @IBOutlet weak var textField: UITextField!
    @IBOutlet weak var browseBtn: UIButton!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    @IBAction func btnClick(_ sender: Any) {
        let text = textField.text
        guard let url = URL(string: text!) else {
            
            return
        }
        let vc = HybridWebVc()
        vc.requestURL = url
        let nav = UINavigationController(rootViewController: vc)
//        nav.modalPresentationStyle = .fullScreen
        self.present(nav, animated: true, completion: nil)
    }
}

